
<div class="manage-user">
<div class="manage-user-atas">
	<div class="trans-log-atas-title ">List User</div>
	<div class="trans-log-page"><?php
	echo ! empty($pagination) ? '' . $pagination . '' : '';
	?>
	</div>
</div>
<div class="manage-user-tengah">
	<div><a href="<?php echo site_url('sysadmin/sysAdmin/formReg');?>"><img src="<?php echo base_url();?>images/adduser.png" border="none" /></a></div>
	<div class="manage-user-tengah-box">
<?php 
if(isset($_SESSION['sys_admin']) and isset($_SESSION['name'])) {

	echo ! empty($message) ? '<p class="message">' . $message . '</p>': '';
	echo ! empty($success) ? '<p class="message">' . $success . '</p>': '';
	
	$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': '';
	
	
	
	//echo ! empty($table) ? $table : '';
	
	

?>
<table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable" width="880">
<thead>
	<tr>
<th class="nosort"><h3>No</h3></th><th><h3>User Name</h3></th><th><h3>Email</h3></th><th><h3>Dept Name</h3></th><th><h3>Mandiri Id</h3></th><th><h3>Status</h3></th><th><h3>Actions</h3></th></tr>

</thead>
<tbody>
	<?php
		$w1 ="#bee1ff";
		$w2 ="#90ccff";
		$warna = $w1;
		$no =0;
		foreach($manage->result() as $manage) {
			if($warna==$w1) {
				$warna = $w2;
			} else {
				$warna = $w1;
			}
		$no ++;
	?>
	<tr bgcolor="<?php echo $warna;?>">
		<td><?php echo ++$i;?></td>
        <td><?php echo $manage->name;?></td>
        <td><?php echo $manage->email;?></td>
        <td><?php echo $manage->dept_name;?></td>
        <td><?php echo $manage->mandiri_id;?></td>
        <td><?php echo $manage->status;?></td>
        <td><a href="<?php echo site_url('sysadmin/manageUser/update')."/".$manage->user_id;?>"><img src="<?php echo base_url();?>images/update.png" border="none"></a> <?php echo anchor('sysadmin/manageUser/delete/'.$manage->user_id,'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ',array('class'=>'delete','onclick'=>"return confirm('Anda yakin akan menghapus data ini?')"));?></td>
	</tr>
    
	<?php } ?>
	<?php } ?>
  </tbody>
  </table>
	</div>
<script type="text/javascript" src="<?php echo base_url();?>js/sorter.js"></script>
<script type="text/javascript">
	var sorter = new TINY.table.sorter("sorter");
		sorter.head="heads";
		sorter.asc = "asc";
		sorter.desc = "desc";
		sorter.even = "evenrow";
		sorter.odd = "oddrow";
		sorter.evensel ="evenselected";
		sorter.oddsel ="oddselected";
		sorter.paginate= true;
		sorter.currentid ="currentpage";
		sorter.limited ="pagelimit";
		sorter.init("table",1);
</script>
	<div><a href="<?php echo site_url('sysadmin/sysAdmin/formReg');?>"><img src="<?php echo base_url();?>images/adduser.png" border="none" /></a></div>
</div>
<div class="manage-user-bawah">
	<div class="trans-log-page2"><?php
	echo ! empty($pagination) ? '' . $pagination . '' : '';
	?></div>
</div>
</div>